<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<%@include file="../../common/include_list_head.jsp" %>
    <script type="text/javascript" src="${basePath }/component/datepicker/WdatePicker.js"></script>
    <script type="text/javascript">

    </script>
</head>
<body>
 <div id="scrollContent">

<s:if test="actionErrors.size()>0 || actionMessages.size()>0 || fieldErrors.size()>0">
	<div id="SystemErrorMessage" >
		<s:actionerror/>
		<s:actionmessage/>
		<s:fielderror/>
	</div>
</s:if>

<s:form theme="simple" name="ysform">
    <s:hidden name="pager.formname" value="ysform"/>
    <s:hidden name="pager.currentPageno" id="yspager_currentPageno"/>
</s:form>

		<div id="userRoleMenuButton">
            <button onclick="openEntity()"><span class="icon_add">新增</span></button>
            <button onclick="doModify()"><span class="icon_edit">修改</span></button>
            <button onclick="doRemove()"><span class="icon_delete">删除</span></button>
		</div>
		<div>
			<table class="tableStyle" style="width:100%;">
				<tr>
					<th width="3%"></th>
					<th nowrap="nowrap" width="10%">用户姓名</th>
					<th nowrap="nowrap" width="10%">所在部门</th>
					<th nowrap="nowrap" width="10%">身份类型</th>
					<th nowrap="nowrap" width="10%">上次登录时间</th>
					<th nowrap="nowrap" width="10%">上次登录IP</th>
				</tr>
				<s:iterator value="resultData">
					<tr>
						<td align="center"><s:checkbox id="%{userid}" name="selectnode" fieldvalue="%{userid}"/></td>
						<td nowrap="nowrap" >
						   <a href="javascript:openEntity('<s:property value="userid"/>')">
						         <font color="blue"><s:property value="username" /></font></a>
						</td>
						<td nowrap="nowrap"><s:property value="userdepart"/></td>
						<td nowrap="nowrap"><s:property value="usertype"/></td>
						<td nowrap="nowrap"><s:date name="lastlogintime" format="yyyy-MM-dd HH:mm:ss" /></td>
						<td nowrap="nowrap"><s:property value="lastloginip"/></td>
					</tr>
				</s:iterator>
			</table>
		</div>
		<div style="height: 45px;">
			<div id="pagelist" style="display: none">
	  			<s:property value="pager.postToolBar" escape="false"/>
	  		</div>

			<div class="clear"></div>
		</div>
	</div>
</body>
</html>
